package person.csx.studentgradle.service;


import person.csx.studentgradle.model.Student;

import java.util.List;

/**
 *
 */
public interface StudentService  {
    List<Student> list();

    int delete(int id);

    /**
     * 新增学生
     * @param student
     * @return
     */
    int insert(Student student);
    //分页查询，currPage第几页，pageSize每页显示记录行数
    List<Student> selectByPage(int currPage,int pageSize);
    int checkOnlyByName(String name);
    int checkOnlyById(String id);
}
